package com.csd.homework2.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping({"/","/toIndex"})
    public String toIndex(Model model){
        model.addAttribute("message","Hello,how are you doing?");
        model.addAttribute("result","100+200");
        return "index";
    }
}
